<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>五彩导航栏</title>
    <style>
        .nav a {
            display: inline-block;
            text-decoration: none;
            width: 120px;
            text-align: center;
            height: 58px;
            line-height: 58px;
        }
        
        .nav .bg1 {
            background-image: url(images/bg1.png);
        }
        
        .nav .bg2 {
            background-image: url(images/bg2.png);
        }
        
        .nav .bg3 {
            background-image: url(images/bg3.png);
        }
        
        .nav .bg4 {
            background-image: url(images/bg4.png);
        }
        
        .nav .bg5 {
            background-image: url(images/bg1.png);
        }
        
        .bg1:hover {
            background-image: url(images/bg5.png);
        }
        
        .bg2:hover {
            background-image: url(images/bg4.png);
        }
        
        .bg3:hover {
            background-image: url(images/bg11.png);
        }
        
        .bg4:hover {
            background-image: url(images/bg22.png);
        }
        
        .bg5:hover {
            background-image: url(images/bg5.png);
        }
    </style>

</head>

<body>
    <div class="nav">
        <a href="#" class="bg1">五彩导航</a>
        <a href="#" class="bg2">五彩导航</a>
        <a href="#" class="bg3">五彩导航</a>
        <a href="#" class="bg4">五彩导航</a>
        <a href="#" class="bg5">五彩导航</a>


    </div>



</body>

</html>